﻿
@{
    /**/

    ViewBag.Title = "清算记录查询";
    Layout = "~/Views/Shared/_Content.cshtml";
    var IBList = new HmPMer.Business.InterfaceBll().GetInterfaceBusinessList(-1);
}

@section HeadSection{
    <script src="/Scripts/jquery-1.8.3.min.js?@ViewBag.StaticVersion"></script>
    <script src="/scripts/Withdraw/withdrawordertarnindex.js?@ViewBag.StaticVersion"></script>
    <script src="/Scripts/My97DatePicker/WdatePicker.js?@ViewBag.StaticVersion"></script>
}

    <div class="layui-form">
        <blockquote class="layui-elem-quote quoteBox">
            <form class="layui-form" id="form_seartch">
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        商户ID：
                    </div>
                    <div class="layui-input-inline" style="width:100px">
                        <input type="text" class="layui-input" id="UserId" name="UserId" placeholder="商户ID" />
                    </div>
                    <div class="layui-input-inline">
                        通道订单ID：
                    </div>
                    <div class="layui-input-inline" style="width:150px">
                        <input type="text" class="layui-input" id="ChannelOrderNo" name="ChannelOrderNo" placeholder="通道订单ID" />
                    </div>
                    <div class="layui-input-inline">
                        订单ID：
                    </div>
                    <div class="layui-input-inline" style="width:150px">
                        <input type="text" class="layui-input" id="OrderId" name="OrderId" placeholder="订单ID" />
                    </div>
                    <div class="layui-input-inline">
                        账户姓名：
                    </div>
                    <div class="layui-input-inline" style="width:80px">
                        <input type="text" class="layui-input" id="FactName" name="FactName" placeholder="账户姓名" />
                    </div>
                    <div class="layui-input-inline">
                        银行账号：
                    </div>
                    <div class="layui-input-inline" style="width:150px">
                        <input type="text" class="layui-input" id="BankCode" name="BankCode" placeholder="银行账号" />
                    </div>

                    <div class="layui-input-inline">
                        接口商：
                    </div>
                    <div class="layui-input-inline" style="width:100px">
                        <select name="InterfaceCode" class="InterfaceCode" lay-filter="InterfaceCode">
                            <option value="-1">请选择接口商</option>
                            <option value="">不走接口</option>
                            @foreach (var item in IBList)
                        {
                            <option value="@item.Code">@item.Name</option>
                    }
                        </select>
                    </div>

                    <div class="layui-input-inline">
                        状态：
                    </div>
                    <div class="layui-input-inline" style="width:100px">
                        <select id="TarnState" name="TarnState" lay-verify="" lay-filter="TarnState">
                            <option value="-1">请选择</option>
                            <option value="0">待交易</option>
                            <option value="1">交易成功</option>
                            <option value="2">失败</option>
                            <option value="3">付款中</option>
                        </select>
                    </div>
                    <br />
                    <div class="layui-input-inline">
                        提交时间：
                    </div>

                    <div class="layui-input-inline">
                        <input style="width:150px" class="layui-input" onfocus="WdatePicker({ maxDate: $('#EndTime').val(),dateFmt:'yyyy-MM-dd HH:mm:ss'})" value="@DateTime.Now.ToString("yyyy-MM-dd 00:00:00")" type="text" id="BeginTime" name="BeginTime" />
                    </div>
                    <div class="layui-input-inline">
                        到
                    </div>
                    <div class="layui-input-inline">
                        <input style="width:150px" class="layui-input" onfocus="WdatePicker({ minDate: $('#BeginTime').val(),dateFmt:'yyyy-MM-dd HH:mm:ss'})" value="@DateTime.Now.ToString("yyyy-MM-dd 23:59:59")" type="text" id="EndTime" name="EndTime" />
                    </div>

                    <a class="layui-btn search_btn" data-type="reload">搜索</a>
                    <a class="layui-btn layui-btn-normal" id="span_orderimprotexcel">
                        <i class="layui-icon">&#xe655;</i>导出
                    </a>
                </div>
            </form>
        </blockquote>
        <table id="WithdrawOrderTarnIndexList" lay-filter="WithdrawOrderTarnIndexList"></table>

        <iframe src="about:blank" id="iframeOut" name="iframeOut" style="display:none"></iframe>
    </div>
